<?php

namespace common\enum;

class MoneyExchangeEnum
{
    //最大额度转化金额
    const MAX_EXCHANGE_AMOUNT = 9999999000;

    //主转子
    const EXCHANGE_TYPE_M2P = 1;
    //子转主
    const EXCHANGE_TYPE_P2M = 2;
    //收入
    const MONEY_LOG_CATEGORY_INCOME = 1;
    //支出
    const MONEY_LOG_CATEGORY_EXPEND = 2;
    //额度转换
    const MONEY_LOG_CATEGORY_TRANSFORM = 3;
    //子钱包同步
    const MONEY_PARTNER_LOG_CATEGORY_SYNC = 3;

    //额度转化日志状态
    const MONEY_TRANSFORM_STATUS_PENNDING = 0;
    const MONEY_TRANSFORM_STATUS_SUCCESS = 1; // 成功
    const MONEY_TRANSFORM_STATUS_FAILED = 2; // 失败
    const MONEY_TRANSFORM_STATUS_TRANS_OK = 3; // 第三方转账成功
    const MONEY_TRANSFORM_STATUS_MAIN_MONEY = 4; // 主钱包转账成功
    const MONEY_TRANSFORM_STATUS_MAIN_FAILED = 5; // 主钱包转账失败
    const MONEY_TRANSFORM_STATUS_PARTNER_MONEY = 6; // 子钱包转账成功
    const MONEY_TRANSFORM_STATUS_PARTNER_FAILED = 7; // 子钱包转账失败
    const MONEY_TRANSFORM_STATUS_SQL_ERROR = 8; // 事务处理失败
    const MONEY_TRANSFORM_STATUS_TRANS_FAILED = 9; // 第三方转账正常失败，请重试
    const MONEY_TRANSFORM_STATUS_TRANS_READY = 10; // 准备向第三方转账
    const MONEY_TRANSFORM_STATUS_TRANS_TRY = 11; // 修正转账正常失败
    const MONEY_TRANSFORM_STATUS_ABORT = 100; // 异常失败

}